<template>
  <div class="container">
    <!-- 列表筛选 -->
    <div class="sortList">
      <div class="sortItem">
        <div v-for="item in ucfilter"
             :key="item.id"
             :class="item.id === 1?'sortActive':'' "
             class="sortclassify">{{ item.title }}
        </div>
      </div>
    </div>

    <!-- 视频展示 -->
    <slot name="videoShow">插槽默认内容……</slot>
    <!-- 加载 -->
    <div class="loading">
      <button class="btn">加载更多</button>
    </div>
  </div>

  <!-- 底部 -->
  <div class="bottom"></div>
</template>

<script lang="ts">
  import {defineComponent} from "vue";

  export default defineComponent({
    name: "CourseModel",
  });
</script>

<script lang="ts" setup>
  import {defineProps, computed} from "vue";

  interface PropsData {
    ucfilter: string[];
  }

  const props = defineProps<PropsData>();


</script>

<style lang="less">
  html,
  body {
    margin: 0;
    padding: 0;
    background: #f5f7f9;
  }

  /* 底部 */
  .bottom {
    height: 100px;
    width: 100%;
  }

  /* 排序列表 */
  .sortList {
    width: 1200px;
    box-sizing: border-box;
    margin: 0 auto;
    background: #fff;
    margin-top: 10px;
    border-radius: 5px;
    padding: 25px 30px;
    margin-bottom: 20px;

    .sortItem {
      display: flex;
      flex-wrap: wrap;

      .sortActive {
        color: #f93684 !important;
      }

      .sortclassify {
        color: #7d8090;
        margin-right: 50px;
        font-size: 14px;
        height: 20px;
        line-height: 20px;
        font-weight: 400;
      }
    }
  }

  // 加载更多
  .loading {
    width: 1160px;
    margin: 45px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;

    .btn {
      background: #fff;
      color: #82858e;
      width: 140px;
      height: 40px;
      border: 1px solid #eaecf0;
      // padding: 10px;
      font-size: 14px;
      align-items: center;
    }
  }
</style>
